from django.db import models

class Feedback(models.Model):
    first_name = models.CharField(max_length=15)
    surname = models.CharField(max_length=15)
    email = models.EmailField(max_length=40)
    comment = models.TextField()
    
    @property
    def comment_short(self):
        return self.comment[:100]+'...'
    
    def __unicode__(self):
        return str(self.id)